package com.kobe.thread;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Vector;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author ：caopengfei
 * @date ：2021/5/2
 */
public class ArrayListTest {

    public static void main(String[] args) {


        int abc = 8 >> 1;
        System.out.println(abc);

        ArrayList<String> list = new ArrayList<String>();

        list.add("123");


        Collections.synchronizedList(list);
        Collections.unmodifiableCollection(list);
        List copyOnWriteArrayList  = new   CopyOnWriteArrayList();

        copyOnWriteArrayList.add("123");



        Vector<String> vector = new Vector();

        vector.add("1212");





    }



}
